package oot.activity;

import oot.data.Config;
import oot.data.User;
import oot.fragment.HomeFragment;
import oot.tab.activity.R;
import oot.view.HeadTab;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

public class ViewUserTweetActivity extends FragmentActivity {
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.user_tweet_layout);
		User tempUser = (User)getIntent().getSerializableExtra(Config.USER);
		FragmentManager fragmentManager = getSupportFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        //add a fragment 
        HomeFragment myFragment = new HomeFragment("/timelines/user_timeline",tempUser);
        //myFragment.setmUser(tempUser);
        //myFragment.setApi("/timelines/user_timeline");
        fragmentTransaction.add(R.id.lo_fragment, myFragment);
        fragmentTransaction.commit();
        
        
        HeadTab head = new HeadTab(this);
		head.createHeadTabAction("Tweet");
	}
}
